<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-08-28 20:49
 *
 * Version: 2.0
 */

namespace App\Modules\Order\Validators;


class OfflineControllerValidator
{

	public static function validator()
	{
		return [
			'offlineAppointmentOrder' => [
				'store_id'         => [
					'title'   => '店铺ID',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'member_id'        => [
					'title'   => '用户ID',
					'rule'    => 'nullable|numeric',
					'message' => []
				],
				'barber_id'        => [
					'title'   => '理发师ID',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'service_id'       => [
					'title'   => '服务ID',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'appointment_time' => [
					'title'   => '预约时间',
					'rule'    => 'required|date',
					'message' => []
				],
				'mobile' => [
					'title' => '手机号',
					'rule' => 'required|min:11|max:11',
					'message' => []

				]
			],
			'addOfflineOrder' => [
				'store_id'         => [
					'title'   => '店铺ID',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'real_price'        => [
					'title'   => '消费单价',
					'rule'    => 'nullable|numeric',
					'message' => []
				],
				'is_appoint' => [
					'title'   => '是否指定理发师',
					'rule'    => 'nullable|numeric',
					'message' => []
				],
				'service_id'       => [
					'title'   => '服务ID',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'member_id'        => [
					'title'   => '用户ID',
					'rule'    => 'nullable|numeric',
					'message' => []
				],
				'change_reason' => [
					'title'   => '改价原因',
					'rule'    => 'nullable',
					'message' => []
				],
				'remark' => [
					'title'   => '备注',
					'rule'    => 'nullable',
					'message' => []
				],
				'member_card_id' => [
					'title'   => '会员卡Id',
					'rule'    => 'nullable|numeric',
					'message' => []
				],
				'payment'          => [
					'title'   => '支付方式',
					'rule'    => 'nullable|numeric',
					'message' => []
				],
				'assistant_id' => [
					'title'   => '助理ID',
					'rule'    => 'nullable|numeric',
					'message' => []
				]
			]
		];
	}
}